package com.ge.modules.api.service.impl;

import com.ge.modules.api.service.TbStoreMemberService;
import com.ge.modules.dao.TbStoreMemberDao;
import com.ge.modules.entity.TbStoreMemberEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TbStoreMemberServiceImpl implements TbStoreMemberService {
	@Autowired
	private TbStoreMemberDao storeMemberDao;
	
	@Override
	public TbStoreMemberEntity queryObject(Integer id){
		return storeMemberDao.queryObject(id);
	}
	
	@Override
	public List<TbStoreMemberEntity> queryList(Map<String, Object> map){
		return storeMemberDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return storeMemberDao.queryTotal(map);
	}
	
	@Override
	public void save(TbStoreMemberEntity storeMember){
		storeMemberDao.save(storeMember);
	}
	
	@Override
	public void update(TbStoreMemberEntity storeMember){
		storeMemberDao.update(storeMember);
	}
	
	@Override
	public void delete(Integer id){
		storeMemberDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		storeMemberDao.deleteBatch(ids);
	}
	
}
